package edu.neu.javaweb.bean;

import io.github.biezhi.anima.Model;

import java.util.Date;


public class Employee extends Model {
    private int id;
    private String name;
    private String job;
    private String sex;
    private int deptId;
    private Date hireDate;
    private int mgr;
    private float sal;

    public Employee(int id, String name, String job, String sex, int deptId, Date hireDate, int mgr, float sal) {
        this.id = id;
        this.name = name;
        this.job = job;
        this.sex = sex;
        this.deptId = deptId;
        this.hireDate = hireDate;
        this.mgr = mgr;
        this.sal = sal;
    }

    public Employee() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getDeptId() {
        return deptId;
    }

    public void setDeptId(int deptId) {
        this.deptId = deptId;
    }

    public Date getHireDate() {
        return hireDate;
    }

    public void setHireDate(Date hireDate) {
        this.hireDate = hireDate;
    }

    public int getMgr() {
        return mgr;
    }

    public void setMgr(int mgr) {
        this.mgr = mgr;
    }

    public float getSal() {
        return sal;
    }

    public void setSal(float sal) {
        this.sal = sal;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", job='" + job + '\'' +
                ", sex='" + sex + '\'' +
                ", deptId=" + deptId +
                ", hireDate=" + hireDate +
                ", mgr=" + mgr +
                ", sal=" + sal +
                '}';
    }
}
